﻿namespace arrayOp
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] arr = { 10, 20, 30, 40, 50};
            
            int max = arr.Max();
            int min = arr.Min();
            double avg = arr.Average();
            int sum = arr.Sum();

            Console.WriteLine($"The maximum value is {max}");
            Console.WriteLine($"The minimum value is {min}");
            Console.WriteLine($"The average value is {avg}");
            Console.WriteLine($"The sum of all elements is {sum}");
        }
    }
}